package com.smalluz.ad.modules.ks.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.smalluz.ad.modules.common.result.BaseResult;
import com.smalluz.ad.modules.common.util.json.JacksonUtils;
import com.smalluz.ad.modules.ks.result.report.AdReportResultInfo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class KsAdReportResult extends BaseResult {
    
    private static final long serialVersionUID = 2375660693685386073L;
    
    @JsonProperty("data")
    private AdReportResultInfo data;

    public static KsAdReportResult fromJson(String json) {
        return JacksonUtils.jsn2bean(json, KsAdReportResult.class);
    }
}
